package org.jeecg.modules.user.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.user.member.dto.*;
import org.jeecg.modules.user.member.entity.Member;
import org.jeecg.modules.utils.BikeResult;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: bike_pile
 * @Author: jeecg-boot
 * @Date:   2021-05-19
 * @Version: V1.0
 */
public interface MemberService extends IService<Member> {

    /**
     * 注册
     */
    BikeResult insertMenberUser(Member member);

    /**
     * 账号密码登录
     */
    BikeResult appLogin(LoginsReq loginsReq);

    /**
     * 手机号码登录
     */
    BikeResult phoneLogin(LoginPhoneReq loginPhoneReq);

    /**
     * 忘记密码
     */
    BikeResult forgetPassword(ForgetPasswordReq forgetPasswordReq);

    /**
     * 修改头像
     */
    BikeResult updateMember(MemberReq memberReq);

    /**
     * 换绑手机号1
     */
    BikeResult checkPhone(LoginPhoneReq loginPhoneReq);

    /**
     * 换绑手机号2
     */
    BikeResult updatePhone(LoginPhoneReq loginPhoneReq, HttpServletRequest request);

    /**
     * 我的行程
     */
    BikeResult getTripList(MemberIdReq memberIdReq, HttpServletRequest request);

    /**
     * 退出登录
     */
    BikeResult appLogOut(HttpServletRequest request);

    /**
     * 注销账号
     */
    BikeResult appLogOff(HttpServletRequest request);

    /**
     * 余额明细
     */
    BikeResult detailed(Integer pageNum, Integer pageSize, HttpServletRequest request);

    /**
     * 修改密码
     */
    BikeResult updatePassword(MemberPwdReq memberPwdReq, HttpServletRequest request);


}
